<template>
  <DwProjectConfig :config="projectConfig">
    <router-view />
  </DwProjectConfig>
</template>

<script setup>
import { computed } from 'vue'
import { useThemeStore } from '@/store'

/* 主题默认加载配置 */
const themeStore = useThemeStore()
// themeStore.setDarkModel(true)
// themeStore.changeTheme(themeStore.themeJson.elColorPrimary)
// themeStore.changeSliderTheme(themeStore.themeJson.dwSidebaBg)
/* 主题默认加载配置 */

/* dwyl-ui默认传递参数配置 */
const projectConfig = {
  table: {
    pageField: 'page',
    limitField: 'size',
    totalField: 'total',
    dataField: 'data',
    defaultLimit: 20 // 默认展示多少条
  }
}
/* dwyl-ui默认传递参数配置 */
</script>

<style lang="scss">
html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
#app {
  position: relative;
}
.dwmain-fixed {
  position: fixed;
  background-color: var(--el-color-primary);
  z-index: 10;
  top: 360px;
  right: 14px;
  cursor: pointer;
}
</style>
